
#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
int main()
{
	int a = 0;
	int b = 0;
	int c = 0;
	int t = 0;
	scanf("%d%d%d", &a, &b, &c);
	if(a  < b)
	{
		    t = b;
			b = a;
			a = t;
	}
	if(a < c)
	{
		t = c;
		c = a;
		a = t;
	}
	if(b < c)
	{
		t = c;
		c = b;
		b = t;
	}
	printf("max=%dmin=%d", a, c);
	printf("\naverage=%d", (a + b + c) / 3);
	return 0;
}